//
//  QPointsTipCell.m
//  QoilPublic
//
//  Created by 杨凯 on 2017/3/20.
//  Copyright © 2017年 杨凯. All rights reserved.
//

#import "QPointsTipCell.h"
@interface QPointsTipCell ()
{
    NSString * type;
}
@end
@implementation QPointsTipCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)pointAction:(UIButton *)sender {

    
    if (self.tipBlock) {
        self.tipBlock(sender);
    }
    if (sender.tag == 1) {
        type = @"2";
    }else{
        type = @"1";

    }
    if ([self.delegate respondsToSelector:@selector(respondsToSelector:)]) {
        [self.delegate refreshActionWithType:type];
    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
